package com.vote.wx.service;

import com.vote.common.core.domain.ResponseResult;
import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface ApiUserService {

    /**
     * 获取微信登录验证码
     * @return
     */
    public ResponseResult getWechatLoginCode();

    /**
     * 微信公众号登录
     * @param message
     * @return
     */
    public String wechatLogin(WxMpXmlMessage message);

    /**
     * 判断用户是否微信登录成功
     * @param loginCode 登录码
     * @return
     */
    public ResponseResult wxIsLogin(String loginCode);

}
